<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*"%>
<%@page import="com.infomanage.vo.*"%>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.service.plan.*"%>
<%
	request.setCharacterEncoding("UTF-8");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<title>发送短信</title>
		<link href="../../css/table.css" rel="stylesheet" type="text/css">

		<script type="text/javascript">
		function doSubmit(){
			form1.submit();
		}
		function addksjyperson(){
		    var url = "addperson.jsp";
			var width = '400px';
			var height ='400px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;";
			var returnValue = window.showModalDialog(url, "", arg);
			if(returnValue){
				var existPhoneNo = document.getElementById("phonenum").innerText;
				if(existPhoneNo == ""){
					document.getElementById("phonenum").innerText =  returnValue;
				}else{
					document.getElementById("phonenum").innerText =  existPhoneNo +";"+ returnValue;
				}
			}
		}
		function addotherperson(){
		    var url = "addotherperson.jsp";
			var width = '400px';
			var height ='400px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;";
			var returnValue = window.showModalDialog(url, "", arg);
			if(returnValue){
				var existPhoneNo = document.getElementById("phonenum").innerText;
				if(existPhoneNo == ""){
					document.getElementById("phonenum").innerText =  returnValue;
				}else{
					document.getElementById("phonenum").innerText =  existPhoneNo +";"+ returnValue;
				}
			}
		}
	</script>
	</head>
	<body rightmargin="0" bottommargin="0" leftmargin="0">

		<form name="form1" action="/Struts2/msgSendServlet" method="post"
			target="actionFrame">
			<table class="dialogTable" cellpadding="0" cellspacing="0">
				<!-- 表头-->
				<tr class="dialogTableHeader">
					<td>
						发送短消息
					</td>
				</tr>
				<!-- 表数据-->
				<tr class="dialogTableContent">
					<td>
						<!-- 数据项 -->
						<table class="dataTable">
							<col width="15%">
							<col width="15%">

							<tr style="height: 130px">
								<td class="field">
									手机号码
								</td>
								<td valign="top" colspan="20" style="height: 50px">
									
									<textarea  id="phonenum" name="phonenum"  style="width: 100%; height: 80%"></textarea>
									
									<input type="button" value="添加救护大队联系人"
										onclick="addksjyperson();">
									&nbsp;
									<input type="button" value="添加其他联系人" onclick="addotherperson();">
									&nbsp;
								</td>
								
							</tr>
							<tr style="height: 30px">
								<td class="field">
									紧急程度
								</td>
								<td class="field">
									<select name="selectMsgType"
										style="width: 100%; margin-left: 5px;" onchange="">
										<option value="urgent">
											紧急
										</option>
										<option value="normal">
											一般
										</option>
									</select>
								</td>
							</tr>
							<tr style="height: 180px">
								<td class="field">
									消息内容
								</td>
								<td valign="top" colspan="20">
									<textarea name="msgcontent" style="width: 100%; height: 100%"></textarea>
								</td>
							</tr>



						</table>
						<p>
						</p>
						<p>
						</p>
						<span style="color: red">注：1.群发时号码之间用英文;号隔开</span>
						<p>
						</p>
						<span style="color: red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							2.短信内容不能超过500个汉字</span>
				<tr>
					<td colspan="2" class="tableBtn">
						<span onclick="doSubmit();">发送</span>
						<span onclick="window.close();">取消</span>
					</td>
				</tr>



				<tr valign="top">
					<td colspan="8">
						&nbsp;
					</td>
				</tr>
			</table>




		</form>
		<iframe src="#" frameborder="0" id="treeFrame" name="frame"
			style="display: none; position: absolute;"></iframe>
		<iframe src="#" name="actionFrame" style="display: none;"></iframe>
	</body>
</html>